"use strict";
cc._RF.push(module, '0650fy8R4xONrM0OnWYHuUe', 'RankItem');
// scripts/RankItem.js

"use strict";

var t = require;
var e = module;
var o = exports;

var _n17,
    i = void 0 && (void 0).__extends || (_n17 = function n(t, e) {
  return (_n17 = Object.setPrototypeOf || {
    __proto__: []
  } instanceof Array && function (t, e) {
    t.__proto__ = e;
  } || function (t, e) {
    for (var o in e) {
      Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
    }
  })(t, e);
}, function (t, e) {
  function o() {
    this.constructor = t;
  }

  _n17(t, e), t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
}),
    s = void 0 && (void 0).__decorate || function (t, e, o, n) {
  var i,
      s = arguments.length,
      r = s < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : typeof Reflect) && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, n);else for (var c = t.length - 1; c >= 0; c--) {
    (i = t[c]) && (r = (s < 3 ? i(r) : s > 3 ? i(e, o, r) : i(e, o)) || r);
  }
  return s > 3 && r && Object.defineProperty(e, o, r), r;
};

Object.defineProperty(o, "__esModule", {
  value: !0
});

var r = cc._decorator,
    c = r.ccclass,
    a = r.property,
    u = function (t) {
  function e() {
    var e = null !== t && t.apply(this, arguments) || this;
    return e.ranking1 = null, e.ranking2 = null, e.ranking3 = null, e.ranking4 = null, e.nickNameLabel = null, e.scoreLabel = null, e.game = null, e;
  }

  return i(e, t), e.prototype.onLoad = function () {}, e.prototype.init = function (t, e, o, n) {
    this.game = t, this.ranking1.active = !1, this.ranking2.active = !1, this.ranking3.active = !1, this.ranking4.node.active = !1, 0 == e && (this.ranking1.active = !0), 1 == e && (this.ranking2.active = !0), 2 == e && (this.ranking3.active = !0), e >= 3 && (this.ranking4.node.active = !0, this.ranking4.string = e + 1 + ""), this.nickNameLabel.string = o ? o + "学府" : this.game.getLanguage("label_unknow") + "学府";
    var i = this.game.getLanguage("label_guan");
    this.scoreLabel.string = n + i;
  }, e.prototype.start = function () {}, s([a(cc.Node)], e.prototype, "ranking1", void 0), s([a(cc.Node)], e.prototype, "ranking2", void 0), s([a(cc.Node)], e.prototype, "ranking3", void 0), s([a(cc.Label)], e.prototype, "ranking4", void 0), s([a(cc.Label)], e.prototype, "nickNameLabel", void 0), s([a(cc.Label)], e.prototype, "scoreLabel", void 0), s([c], e);
}(cc.Component);

o["default"] = u;

cc._RF.pop();